package com.trip.driver.controller;


import com.trip.common.entity.Audit;
import com.trip.common.vo.Result;
import com.trip.driver.service.impl.AuditServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hr
 * @since 2024-09-05
 */
@RestController
@RequestMapping("/audit")
public class AuditController {

    @Autowired
    private AuditServiceImpl auditService;


    @RequestMapping("/applyBeDriver")
    public Result applyBeDriver(@RequestBody Audit audit){
        return auditService.applyBeDriver(audit);
    }

    @RequestMapping("/getMyApply")
    public Result getMyApply(@RequestBody Audit audit){
        return auditService.getMyApply(audit);
    }

}

